don't alloc on stack for flip_image_vertical