fixes remove photo button bug on dashboard