Fix image rotation when using uneven screen scalling in hardware rendermode