Added some commented out alternative resize method