FEATURE: automatic image orientation fix