various fixes for image zoom