adding a method for selection a sub section of an image