var readChunk = require('read-chunk');
var imageType = require('image-type');

exports = module.exports = {
  validator: function(val) {
    if (val) {
      var buffer = readChunk.sync(val, 0, 12);

      return imageType(buffer) !== null;
    }

    return true;
  },
  message: '<%= propertyName %> must be an image.'
};

@@ -70,16 +70,43 @@
 -type');
+%0Avar _ = require('lodash');
 %0A%0Aexport
@@ -168,24 +168,86 @@
  if (val) %7B%0A
+      if (_.isObject(val)) %7B%0A        val = val.path;%0A      %7D%0A%0A
       var bu

Check if given value is object (for image rule), if its an object then get the path