fixed img generation