using file.headers['content-type'] to lookup contentType extension
updated resizeAndCrop method to always create images that fill the specified crop area