optimizing images to remove extra transparent width and height for improved collision detection