Image resizing with possibility fixed canvas size (empty space fills white color)