@staticmethod
def _from_db_object(image, db_image):
    """Converts a database entity to a formal object."""
    for field in image.fields:
        setattr(image, field, db_image[field])
    image.obj_reset_changes()
    return image
