enable photo uploading and thumbnail version resizing