Photo handling implementation.