fix for gridfs api migration to images