Fix bug with imageForKey