Keep aspect ratio for image requests with width or height being 0.
Fixed scaling with width or height being 0.