servlet uploads and downloads images correctly