def successful_conversion?
  .
  .
  .
  # Konwertuj pliki
  img = system("#{convert} #{source} -resize #{IMG_SIZE} #{full_size}")
  thumb = system("#{convert} #{source} -resize #{THUMB_SIZE} #{thumbnail}")
  File.delete(source) if File.exists?(source)
  # Obydwie konwersje musz zakoczy si powodzeniem. W przeciwnym przypadku mamy bd
  unless img and thumb
    errors.add_to_base("Trasfer pliku zakoczy si niepowodzeniem. Sprbuj przesa inny obraz?")
    return false
  end
  return true
end

