Tweaked rimg so that images are always bigger than screen resolution