Adding support for negative sizes, fixes #12