outsource Image class to new script file