Validate images using Imagick before adding them (don't rely on image size alone)
Use Imagick for determining size of image.
Merge pull request #181 from rexxars/strict-image-checking

Validate images using Imagick before adding them