Move photo retrieval logic into modUser so it could be reusable