deprecated getPieceSize. did some cleanup.
added FpsMeter