image drawing fix