BUG: We must compare size with theoretical tile size since actual size might be smaller on image borders