Perfectly timed photographs capture how much dogs love of treats