Adding image size information to db.