implemented the new image resizing on board