add image handling (beginning)