overwrites image