Test added to check if pictures are encoded properly