[common] Add type safety to ImageTile class