using my fork of image-size to support only png and jpg