That looks correct. It should make a folder called 45 under the gallery folder.
So if you have the permissions set to 777 for
Gallery
Gallery/default/full
Gallery/default/medium
Gallery/default/thumbs
Then it should have created a folder called 45 with the file.
And permission check in the UBB control panel should show a ok for each one of them. Might want to check to see if a error for gallery/45 is in there.
Only other item I can think of is the graphics library.
It may not exist.
Which one did you select in the gallery settings?