modify mozilla demo to take pic example