reorganization of some functions
Fixed column resizing on image load