Study on a fast image encoding algorithms in JPEG standard for implementation in FPGA