Fixed parsing existing image templates

Just a temporary fix, only the first ID element should be used.
XML handling should be updated and streamlined in general.
Fixed logging in DisableExpiredImageID()
Fixed parsing existing image templates, pt. 2
Added error logging to HandleAvailablePostfix()