fix raw image format bug