Reworked image resizing unit test