replaced URL checking with @exif_imagetype