Moved to use fast-image-size for auto-detecting the size of images