inital setup of avatar/photo uploading code