image script fix