fixed issue with double upload pictures