small fix when adding images