Comments and bugfixes in dir and image methods

Added comments and examples everywhere it was needed.
Fixed the functions move.
Fixed the functions crop.
Fixed the functions flip.
Fixed the functions resize.
Fixed the functions rotate.