Fixed broken image resizing in last commit