added ability to attach images