added photo uploading functionality for new as well as existing items