Add a filter to allow the resize script to be printed in non-iframe templates.