Load image size if uri points to image file
Add mimelib to dependencies