Pass images by reference instead of by value. Fix spacing.