added raw image type support