Issue/950 image resize

Fix #950 - image resizing no longer requires loading entire image into memory