Fix for upside-down images