Pure golang image resizing