Handle the case that there is no pixelsize given

In that case, just sets 1px as pixel size