encoding and decoding photos on QB.