checking if image exists in destination before uploading