Edited listing.rb to differentiate image treatment between development and production environment