image plugin fix, wrong image dimensions