fix a bug where retina images may have the wrong size and name