Fixed saving images. (problem with getting string from resource)