#!/bin/bash
cd $(dirname "$0")

NEW=$(find -type f \( -name '*.png' -o -name '*.jpg' \) | sort -R | head -n 1)
ln -s "$NEW" __.png
mv __.png _.png
