moveImage function added, bug in putFigure fixed