Fixed image management and frame extraction

Damn code with 4 almost identical dialogs for the same task! :)
Fixed now