Avoid float conversion in ImageOutput::to_native_rectangle