fix for handling ophraned images