Fix bug, where images werent added correctly