Implemented and tested securimage function.