Fixed Resize and Align to use new library functions