Fix image being appended when selecting new one