import copy


def block_dimensions(image_rows, image_cols, row_block_size=1024, col_block_size=1024):

    """
    Args:
        image_rows (int): The number of image rows.
        image_cols (int): The number of image columns.
        row_block_size (Optional[int]): Default is 1024.
        col_block_size (Optional[int]): Default is 1024.

    Returns:
        Row dimensions, Column dimensions
    """

    # set the block dimensions
    if image_rows >= row_block_size:
        row_blocks = row_block_size
    else:
        row_blocks = copy.copy(image_rows)

    if image_cols >= col_block_size:
        col_blocks = col_block_size
    else:
        col_blocks = copy.copy(image_cols)

    return row_blocks, col_blocks