Image finally resizes properly