add raw field to bgimage table to save images in db