added rotate and resize