Fix degradation when opening image from file manager