made own frame package, fixed 2 bugs

bug 1: copy center was off, when resized minX/minY of the world.
bug 2: some scaling issue, but I dont remember anymore.