Added some documentation.
The size, border and position of the image is now calculated from the images header. Menu items may now have different image sizes.