Use same logic to load WebP image that other formats
Merge branch 'PHP-5.5'

* PHP-5.5:
  Use same logic to load WebP image that other formats