Improved m script, selects random background image, excluding current image