Bugfix 11300 (for 6.5) - flip on referenced images.

This is for merging into develop.