Prevent duplicate image uploads