ticket:5 implemented image resizing