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