Make sure slice data starts of 4096-byte aligned boundary
set db_name field in NIfTI header to input filename