Added sys import at image alignment