Add test for resize after changing image