JImageTest::testToFileInvalid

Test the JImage::toFile when there is no image loaded. This should throw a LogicException since we cannot write an image out to file that we don't even have yet.