Fix aspect ratio restriction issue when using image search.