fixes and allow pixel values for min_w and min_h in general