got image resizing working