Refactored code. Resolved: Show image on detail view