Refactor gallery, camera, profile