Adding form functionality to pics