Removed unused mPosX and mPosY variables from Layer