fix bug) for no nil image