add error handling for directory creation and image saving
remove "y to large" message in tgx decoder