length and height are loaded while they are calculated later. Remove this when format will change.
Rewrite it!