support load image if type is image