support for MongoEngine ImageField

Added minor changes to handle MongoEngine ImageField. Tested to work with mongoengine 0.8.3