manually define extensions from image