image window resizing is now working (still no worky for charts)