[[ Bug 10999 ]] fix crash when trying to flip referenced image