Found problem in padding bottom, don't know how to fix. Trying different approach on the calloc branch.