BUGFIX: Setting sort order first time image is attached rather than
SortOrder default to 0.