refactor data to imageUrl for reuse later