changed primary_image method to show_primary_image