add raw image support