Now takes pic as parameter per instructions