Small correction: "flipl" should be "fliplr". Added "flipud" also