Fixed autofill method

Fixed autofill method so that pixels are correctly filled by image
dimensions.
Fixed coordinates

Postscript files have a different coordinate system than the one used
in xpm.py.