Image resizing - small fixes