A suspect whose mugshot was altered by police will avoid prison time.