Man handed 7-year jail term in child porn case