patch for Firefox not resizing blank image to the correct size