fix the get images bug