changed image data layout template to not end script tag. It is ended in the cPresentation function.