Working on decoding images and validating them.