added Encode/Decode Image functions