converting and resizing - both thumb and original work