Python tool for embedded image