rudimentary script to create gif