restore fb_effective_bytes_per_pixel at the first call of encode_{png,jpeg}_init