Add \usepackage{graphics} to main to accomodate the use of picture