photo preview ready. Left to refactor it to library