Fix missing image dimensions on original size

getimagesize() is for local server file paths only