Support for single layer PSD's:

Before image.format('jpg', nil) on a single layer PSD yielded an
'unable to format' error. In the end it was only raised because the new
path wasn't guessed right.
Now it uses a regex and looks immediatly on the filesystem for the
correct file.