Make sure all of these directories are 777:
gallery/
All of the directories within gallery/
tmp/
Then make sure your ImageMagick paths are correct or that your GD is properly etup (and has all the required options).
There is a test URL to test GD or ImageMagick, but I'm not sur what it is, I tend to just enable captcha and see if it properly loads as a test.