max_size, max_height, max_width options added