cleaner way to set images