add spacer and resize image