Optimize images when a story is submitted