Added prarmeters:
image size, max rows