imagemagic plugin doesn't recognise .JPG file extension