added alpha blending support; calculating vertecies for rectangles
s/square/rectangle/g