post-image script modified