Support of any input resoultions without flags specifiing

Get rid of fall down on some combination of image resolution,
background resoultion and width and height flags for the desired
output.