slowly fixing all the bugs

Currently crashes on adding some image filename