- a file path could contain dots, using explode instead of prey_match and it’s faster to use explode.
- added support to save an image from url.
- added another check for the image extension using exif_imagetype