pass buffer as it is, if it is already optimized
add test for optimized image / introduce Bluebird
add root property