Refactoring SSL_Image