Fix marker when initialImage is defined