Implemented 8-axis resize