Fixing bugs in resizing shapes and adding the width and height alignements