A photometric study of the young open cluster NGC 1220