Corrected PHPDocs
Removed usages of deprecated function
Changed the last parameter passed to get_string
Removed unnecessary line of code
Introduced an image element as well as refactoring the code so less code was required in the new element

Note: I did not create a db/upgrade.php script to add the new database tables as this module should not be currently used by anyone.