Added max visual size for imgs
merge