change getimagesize to use the absolute path of images as some hosts
dont like fetching local images as urls