Improved image coords management