That work for sprites that are squares but it won't work with rectangles D=