update image size in db