add image input support