Made the PhotoPreviewActivity working