other method for downscaling (saves ca 60ms per image load)