Fixed an error where ImageMagick wasn't identifying images because the Tempfiles did not have the right extension.