Slightly better support for filename guessing
Added option to extend edges beyond the cell bounds