images upload fixes