fixing imaages bug