#334840 by egfrith: Improve coding style
#323160 by egfrith: Use forms api to create image node
#201977 by bwynants: Fix hierarchical albums shown as flat structure
#67421 by Steve Dondley, vadim.bich, egfrith, : Fix images inserted
without gallery association when gallery newly created
#294686 by egfrith: Fixed setting of album.resize_size and album.thumb_size variables broken by change in image.module.