Added the ability to specify bespoke document icon, utilising the getimagesize parameters to generate size info.