Fixed image initialization.