CSS: Fixed file locking issue with image preview