Made image width and height global vars