Stage 3: Create an Image Gallery - Extracting Helper Methods