Changed the way images are processed

The output isn't quite what I expected it to be.