fix for images with messed up id's