Fix image element path stuff