add translate to perlmaven.com/drawing-images-using-gd-simple