tok i bruk static getscaledimage i tank class