create images with javascript post