Added max size to image rule