working extension for adding buttons to images