Add picture selecting function.