avg img creation has issues